FROM centos:centos6

MAINTAINER yangbo <yangbo@live.cn>

RUN yum update -y
RUN yum -y install gcc gcc-c++ autoconf  zlib zlib-devel glibc glibc-devel glib2 glib2-devel l curl curl-devel vim rpm
RUN rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
RUN yum -y  install nginx
CMD ["nginx", "-g", "daemon off;"]